package com.gjzt.business.depositOrder.controller;

import net.sf.json.JSONObject;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.eastdigit.servlet.RequestAttribute;
import com.eastdigit.servlet.Response;
import com.eastdigit.servlet.ReqBean;
import com.gjzt.business.depositOrder.service.DepositOrderService;

@Controller
@RequestMapping(value = "/depositOrder")
public class DepositOrderController {

    @Autowired
    private DepositOrderService depositOrderService;

    /**
     * 查询
     *
     * @param reqBean
     * @return
     */
    @RequestMapping(value = "/query")
    @ResponseBody
    public JSONObject queryDepositOrder(final @RequestAttribute(ReqBean.NAME) ReqBean reqBean) {
        return Response.response(depositOrderService.findDepositOrder(reqBean));
    }

   /* *//**
     * 添加
     *
     * @param reqBean
     * @return
     *//*
    @RequestMapping(value = "/add")
    @ResponseBody
    public JSONObject addDepositOrder(final @RequestAttribute(ReqBean.NAME) ReqBean reqBean) {
        depositOrderService.addDepositOrder(reqBean);
        return Response.responseSuccess();
    }

    *//**
     * 修改
     *
     * @param reqBean
     * @return
     *//*
    @RequestMapping(value = "/update")
    @ResponseBody
    public JSONObject updateDepositOrder(final @RequestAttribute(ReqBean.NAME) ReqBean reqBean) {
        depositOrderService.updateDepositOrder(reqBean);
        return Response.responseSuccess();
    }

    *//**
     * 删除
     *
     * @param reqBean
     * @return
     *//*
    @RequestMapping(value = "/delete")
    @ResponseBody
    public JSONObject removeDepositOrder(final @RequestAttribute(ReqBean.NAME) ReqBean reqBean) {
        depositOrderService.removeDepositOrder(reqBean);
        return Response.responseSuccess();
    }*/

    //TODO 其他功能
}